<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE');

header("Content-type: text/html; charset=utf-8");
define("DS", '/');
define("APP_PATH",  dirname(__FILE__).DS.'application'.DS);

//session_start(); 
$app  = new Yaf_Application(APP_PATH . "conf/application.ini");
$app->bootstrap()->run();